﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Architecture.Repository.Migrations
{
    public partial class _04091 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ProductionTeam",
                table: "Corporation");

            migrationBuilder.DropColumn(
                name: "ProductionTeamLeader",
                table: "Corporation");

            migrationBuilder.RenameColumn(
                name: "county",
                table: "Corporation",
                newName: "County");

            migrationBuilder.AddColumn<int>(
                name: "SlaughteringCompanyId",
                table: "Slaughter",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DeepProcessingCompany",
                table: "DeepProcessing",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "ProductionLicense",
                table: "Corporation",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "SlaughteringCompanyId",
                table: "Slaughter");

            migrationBuilder.DropColumn(
                name: "DeepProcessingCompany",
                table: "DeepProcessing");

            migrationBuilder.DropColumn(
                name: "ProductionLicense",
                table: "Corporation");

            migrationBuilder.RenameColumn(
                name: "County",
                table: "Corporation",
                newName: "county");

            migrationBuilder.AddColumn<string>(
                name: "ProductionTeam",
                table: "Corporation",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProductionTeamLeader",
                table: "Corporation",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);
        }
    }
}
